package com.visionet.jumper.project.sample.vo;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

public class SampleVo {
	
	@NotEmpty(message = "{sample.name.null}")
	@Length(min = 5, max = 20, message = "{sample.name.length.illegal}")
	@Pattern(regexp = "[a-zA-Z]{5,20}", message = "{sample.name.illegal}")
	private String name;

	private Integer age;

	private Boolean marred;

	private String description;

	private String nickName;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Boolean getMarred() {
		return marred;
	}

	public void setMarred(Boolean marred) {
		this.marred = marred;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
}
